Long Short-Term Memory (LSTM)
Besides output, a cell also has "memory".
Formula
Memory:
ct=ft⊙ct−1+it⊙c~t=(Forget Old Info)+(Incorporate New Info)=Lont-Term Memory+Short-Term Meomry
where:
xtc~nftit=[wtht−1]=tanh(Wc⋅xt+bc)=σ(Wf⋅xt+bf)=σ(Wi⋅xt+bi)[synthesized input][new experience][forget control][input control]
Output:
otht=σ(Wo⋅xt+bo)=ot⊙tanh(ct)[output control][hidden vector = output]
Gates
- forget gate
- input gate
- output gate
Graph

Reference